package com.epam.productxslt.command;

import java.util.concurrent.locks.ReentrantReadWriteLock;

import com.epam.productxslt.controller.RequestContent;
import com.epam.productxslt.exception.ProductException;

public interface Command {
	String CATEGORY_NAME_PARAMETER = "categoryName";
	String SUBCATEGORY_NAME_PARAMETER = "subCategoryName";
	String MODEL_NAME_PARAMETER = "model";
	String PRODUCER_NAME_PARAMETER = "producer";
	String COLOR_NAME_PARAMETER = "color";
	String DATE_NAME_PARAMETER = "date";
	String PRICE_NAME_PARAMETER = "price";
	String NOTINSTOCK_NAME_PARAMETER = "notInStock";
	ReentrantReadWriteLock lock =  new ReentrantReadWriteLock();
	void execute(RequestContent requestContent) throws ProductException;
}
